﻿using ML.Entity;

namespace ML.IRepository
{
    public interface IInvitationProfitRepository : IBaseRepository<InvitationProfitEntity>
    {
        /// <summary>
        /// 根据用户id更新邀请数量
        /// </summary>
        /// <param name="invitationCount">邀请数量</param>
        /// <param name="userId">用户id</param>
        /// <returns></returns>
        bool UpdataInvitationCountByUserId(int invitationCount, string userId);

        /// <summary>
        /// 根据用户id更新成功邀请数量
        /// </summary>
        /// <param name="successCount">成功邀请数量</param>
        /// <param name="userId">用户id</param>
        /// <returns></returns>
        bool UpdataSuccessCountCountByUserId(int successCount, string userId);

        /// <summary>
        /// 根据用户id获取信息
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <returns></returns>
        InvitationProfitEntity GetByUserId(string userId);
    }
}